package com.example.security.ienum;

/**
 * @Author: lex
 * @Date: 2019/2/1
 */
public enum ShiroErrorCode {
    CODE_NO_HEAD_TOKEN_ERROR(ShiroJwtCode.NO_HEAD_TOKEN_ERROR,"头部没有token"),
    CODE_EXPIRE_TIME_ERROR(ShiroJwtCode.EXPIRE_TIME_ERROR,"Token过期"),
    CODE_DECODE_ERROR(ShiroJwtCode.DECODE_ERROR,"token验证不通过"),
    CODE_NO_SESSIONID_TOKEN_ERROR(ShiroJwtCode.NO_SESSIONID_TOKEN_ERROR,"token中并没有sessionId信息");

    private int code;
    private String desc;

    ShiroErrorCode(int code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }
    public String getDesc(){
        return desc;
    }
}
